package com.john.design.七大原则.开闭原则;

/**
 * @Author: JohnCoding
 * @Description: Java课程类
 * @date: 2020/8/9 15:33
 */
public class JavaCourse  implements ICourse{


    private Integer id;

    private String name;


    private Double price;

    public JavaCourse(Integer id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Double getPrice() {
        return price;
    }


    @Override
    public String toString() {
        return "JavaCourse{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
